#include <limits>

namespace v {
    class count
    {
    private:
        static int num;
        static int tmp;
    public:
        count()
        {
            tmp++;
            num = num + tmp;
        }
        static void oper()
        {
            num = 0;
            tmp = 0;
        }
        static int getnum()
        {
            return num;
        }
    };
}

int v::count::tmp = 0;
int v::count::num = 0;

class Solution {
public:
    int Sum_Solution(int n) {
        int num;
        v::count::oper();
        v::count* a = new v::count[n];
        num = v::count::getnum();
        delete[] a;
        return num;
    }
};